package com.kkui.liuxin.mapper;

import com.kkui.liuxin.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * @author kkui
 */
@Mapper
public interface SelectUsernameMp {



    @Select("select * from users where username = #{username}")
    User getUser(@Param("username") String username);

    @Select("select salt from users where username = #{username}")
    User getSalt(String username);

    @Select("select pwd from users where username = #{username}")
    User getPwd(String username);

}
